package com.ruoyi.project.syl_Sxl.service.impl;

import com.ruoyi.project.syl_Sxl.domain.HisOutPatientType;
import com.ruoyi.project.syl_Sxl.mapper.HisOutPatientTypeMapper;
import com.ruoyi.project.syl_Sxl.service.IHisOutPatientTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class HisOutPatientTypeServiceImpl implements IHisOutPatientTypeService {

    @Autowired
    private HisOutPatientTypeMapper hisOutPatientTypeMapper;
    @Override
    public List<HisOutPatientType> selectAll(HisOutPatientType hisOutPatientType) {
        return hisOutPatientTypeMapper.selectAll(hisOutPatientType);
    }

    @Override
    public int insertOutPatient(HisOutPatientType hisOutPatientType) {
        return hisOutPatientTypeMapper.insertOutPatient(hisOutPatientType);
    }

    @Override
    public int deleteByIds(Long[] ids) {
        return hisOutPatientTypeMapper.deleteByIds(ids);
    }

    @Override
    public HisOutPatientType selectById(Long id) {
        return hisOutPatientTypeMapper.selectById(id);
    }

    @Override
    public int updatePatient(HisOutPatientType hisOutPatientType) {
        return hisOutPatientTypeMapper.updatePatient(hisOutPatientType);
    }
}
